<div class="mail_modal">
    <php>if(!$result_gzh){</php>
        <div class="account_null" style="display: block">
     	    <span class="iconfont icon-warning"></span>
        <p class="title">您还没有绑定授权公众号</p>
        <if condition="$guide eq 'show'">
            <p class="spa_gray">请前往<a href="#" onclick="javascript:void(0);$('#register-guide').modal('show');">账号设置</a>中绑定</p>
            <else/>
            <p class="spa_gray">请前往<a href="/my_account">账号设置</a>中绑定</p>
        </if>
     	</div>
    <php>}else{</php>
        <div class="mail">
            <div class="platform">
                <div class="public-choice">
                    <div class="text">平台：</div>
                    <div class="platform-list">
                        <ul class="public-platform">
                            <if condition="$result_gzh neq null">
                                <li class="green">
                                    <span class="iconfont icon-weixin"></span>微信
                                </li>
                            </if>
                            <if condition="$result_xl neq null">
                                <li class="tangerine">
                                    <span class="iconfont icon-iconfontweibo"></span>新浪微博
                                </li>
                            </if>
                            <if condition="$result_tx neq null">
                                <li class="jewelry-blue">
                                    <span class="iconfont icon-tengxunweibo"></span>腾讯微博
                                </li>
                            </if>
                            <if condition="$result_qq neq null">
                                <li class="shading-yellow">
                                    <span class="iconfont icon-qqkongjian"></span>QQ空间
                                </li>
                            </if>
                        </ul>
                        <div class="list-sharp"></div>
                    </div>
                    <php>if($result_gzh != null){</php>
                        <div>公众号：</div>
                        <div class="public-number">
                            <php>if($gzh_list != null){</php>
                                <php>if($results != null){</php>
                                    <div class="mail-sub">
                                        <img src="{$results['image']}" alt="" class="list-sub-img"/>
                                        <div class="list-sub-text">
                                            <span class="mail-name">{$results['user_name']}</span>
                                            <input type="hidden" value="{$results['func_info']}" class="func_info">
                                            <input type="hidden" value="{$results['login_account']}" class="login_account">
                                            <input type="hidden" value="{$results['verify_type_info']}" class="verify_type_info">
                                            <input type="hidden" value="{$results['original_id']}" class="original_id">
                                            <input type="hidden" value="{$results['app_id']}" class="app_id">
                                            <php>if($results['service_type_info'] == 0){</php>
                                                <span class="mail-type">
                                                <span class="iconfont icon-dingyuehao"></span>
                                                <span class="mail-type-name">&nbsp;订阅号</span>
                                                </span>
                                            <php>}else if ($results['service_type_info'] == 2){</php>
                                                <span class="mail-type"><span class="iconfont icon-server"></span>
                                                <span class="mail-type-name">&nbsp;服务号</span></span>
                                            <php>}else if ($results['service_type_info'] == 1){</php>
                                                <span class="mail-type"><span class="iconfont icon-dingyuehao"></span>
                                                <span class="mail-type-name">&nbsp;订阅号</span></span>
                                            <php>}</php>
                                        </div>
                                    </div>
                                    <div class="mail-delete" data-toggle="modal" data-target="#public"><span class="iconfont icon-edit-pen"></span>点击修改</div> 
                                <php> }else{ </php>
                                    <div class="mail-sub">
                                        <img src="{$gzh_list['image']}" alt="" class="list-sub-img"/>
                                        <div class="list-sub-text">
                                            <span class="mail-name">{$gzh_list['user_name']}</span>
                                            <input type="hidden" value="{$gzh_list['func_info']}" class="func_info">
                                            <input type="hidden" value="{$gzh_list['login_account']}" class="login_account">
                                            <input type="hidden" value="{$gzh_list['verify_type_info']}" class="verify_type_info">
                                            <input type="hidden" value="{$gzh_list['original_id']}" class="original_id">
                                            <input type="hidden" value="{$gzh_list['app_id']}" class="app_id">
                                            <php>if($results['service_type_info'] == 0){</php>
                                                <span class="mail-type">
                                                <span class="iconfont icon-dingyuehao"></span>
                                                <span class="mail-type-name">&nbsp;订阅号</span>
                                                </span>
                                            <php>}else if ($results['service_type_info'] == 2){</php>
                                                <span class="mail-type"><span class="iconfont icon-server"></span>
                                                <span class="mail-type-name">&nbsp;服务号</span></span>
                                            <php>}else if ($results['service_type_info'] == 1){</php>
                                                <span class="mail-type"><span class="iconfont icon-dingyuehao"></span>
                                                <span class="mail-type-name">&nbsp;订阅号</span></span>
                                            <php>}</php>
                                        </div>
                                    </div>
                                    <div class="mail-delete" data-toggle="modal" data-target="#public"><span class="iconfont icon-edit-pen"></span>点击修改</div> 
                                <php> }</php>
                            <php> } </php>
                        </div>
                    <php>}</php>
                </div>
            </div>
        </div>
    <php> } </php>
    
    <div class="warning">
    </div>
</div>
<div class="modal fade" data-backdrop="static" id="public" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document" style="width:740px">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">选择公众号</h4>
            </div>
            <div class="modal-body">

                <div class="mail-list">
                    <php>$i = 0;</php>
                    <foreach name="result_gzh" item="each_res">
                        <php>if($each_res){</php>
                        <php>if($results['app_id'] == $each_res['app_id']){</php>
                        <div class="mail-list-sub cover">
                            <img src="{$each_res['image']}" alt="" class="list-sub-img"/>
                            <div class="list-sub-text">
                                <span class="mail-name">{$each_res['user_name']}</span>
                                <input type="hidden" value="{$each_res['func_info']}" class="func_info">
                                <input type="hidden" value="{$each_res['login_account']}" class="login_account">
                                <input type="hidden" value="{$each_res['verify_type_info']}" class="verify_type_info">
                                <input type="hidden" value="{$each_res['original_id']}" class="original_id">
                                <input type="hidden" value="{$each_res['app_id']}" class="app_id">
                                <php>if($each_res['service_type_info'] == 0){</php>
                                <span class="mail-type">
                                    <span class="iconfont icon-dingyuehao"></span>
                                    <span class="mail-type-name">&nbsp;订阅号</span>
                                </span>
                                <php>}else if ($each_res['service_type_info'] == 2){</php>
                                <span class="mail-type">
                                    <span class="iconfont icon-server"></span>
                                    <span class="mail-type-name">&nbsp;服务号</span>
                                </span>
                                <php>}else if ($each_res['service_type_info'] == 1){</php>
                                <span class="mail-type">
                                    <span class="iconfont icon-dingyuehao"></span>
                                    <span class="mail-type-name">&nbsp;订阅号</span>
                                </span>
                                <php>}</php>
                            </div>
                        </div>
                        <php>}else{</php>
                        <div class="mail-list-sub">
                            <img src="{$each_res['image']}" alt="" class="list-sub-img"/>
                            <div class="list-sub-text">
                                <span class="mail-name">{$each_res['user_name']}</span>
                                <input type="hidden" value="{$each_res['func_info']}" class="func_info">
                                <input type="hidden" value="{$each_res['login_account']}" class="login_account">
                                <input type="hidden" value="{$each_res['verify_type_info']}" class="verify_type_info">
                                <input type="hidden" value="{$each_res['original_id']}" class="original_id">
                                <input type="hidden" value="{$each_res['app_id']}" class="app_id">
                                <php>if($each_res['service_type_info'] == 0){</php>
                                <span class="mail-type">
                                    <span class="iconfont icon-dingyuehao"></span>
                                    <span class="mail-type-name">&nbsp;订阅号</span>
                                </span>
                                <php>}else if ($each_res['service_type_info'] == 2){</php>
                                <span class="mail-type">
                                    <span class="iconfont icon-server"></span>
                                    <span class="mail-type-name">&nbsp;服务号</span>
                                </span>
                                <php>}else if ($each_res['service_type_info'] == 1){</php>
                                <span class="mail-type">
                                    <span class="iconfont icon-dingyuehao"></span>
                                    <span class="mail-type-name">&nbsp;订阅号</span>
                                </span>
                                <php>}</php>
                            </div>
                        </div>
                        <php>}</php>
                        <php>}else{</php>
                        <php>if($i == 0){</php>
                        <div class="mail-list-sub cover">
                            <img src="{$each_res['image']}" alt="" class="list-sub-img"/>
                            <div class="list-sub-text">
                                <span class="mail-name">{$each_res['user_name']}</span>
                                <input type="hidden" value="{$each_res['func_info']}" class="func_info">
                                <input type="hidden" value="{$each_res['login_account']}" class="login_account">
                                <input type="hidden" value="{$each_res['verify_type_info']}" class="verify_type_info">
                                <input type="hidden" value="{$each_res['original_id']}" class="original_id">
                                <input type="hidden" value="{$each_res['app_id']}" class="app_id">
                                <php>if($each_res['service_type_info'] == 0){</php>
                                <span class="mail-type">
                                    <span class="iconfont icon-dingyuehao"></span>
                                    <span class="mail-type-name">&nbsp;订阅号</span>
                                </span>
                                <php>}else if ($each_res['service_type_info'] == 2){</php>
                                <span class="mail-type">
                                    <span class="iconfont icon-server"></span>
                                    <span class="mail-type-name">&nbsp;服务号</span>
                                </span>
                                <php>}else if ($each_res['service_type_info'] == 1){</php>
                                <span class="mail-type">
                                    <span class="iconfont icon-dingyuehao"></span>
                                    <span class="mail-type-name">&nbsp;订阅号</span>
                                </span>
                                <php>}</php>
                            </div>
                        </div>
                        <php>}else{</php>
                        <div class="mail-list-sub">
                            <img src="{$each_res['image']}" alt="" class="list-sub-img"/>
                            <div class="list-sub-text">
                                <span class="mail-name">{$each_res['user_name']}</span>
                                <input type="hidden" value="{$each_res['func_info']}" class="func_info">
                                <input type="hidden" value="{$each_res['login_account']}" class="login_account">
                                <input type="hidden" value="{$each_res['verify_type_info']}" class="verify_type_info">
                                <input type="hidden" value="{$each_res['original_id']}" class="original_id">
                                <input type="hidden" value="{$each_res['app_id']}" class="app_id">
                                <php>if($each_res['service_type_info'] == 0){</php>
                                <span class="mail-type">
                                    <span class="iconfont icon-dingyuehao"></span>
                                    <span class="mail-type-name">&nbsp;订阅号</span>
                                </span>
                                <php>}else if ($each_res['service_type_info'] == 2){</php>
                                <span class="mail-type">
                                    <span class="iconfont icon-server"></span>
                                    <span class="mail-type-name">&nbsp;服务号</span>
                                </span>
                                <php>}else if ($each_res['service_type_info'] == 1){</php>
                                <span class="mail-type">
                                    <span class="iconfont icon-dingyuehao"></span>
                                    <span class="mail-type-name">&nbsp;订阅号</span>
                                </span>
                                <php>}</php>
                            </div>
                        </div>
                        <php>}</php>
                        <php>$i++;</php>
                        <php>}</php>
                    </foreach>
                </div>
            </div>
            <div class="modal-footer public_btn">
                <button class="btn btn-success details-btn" data-dismiss="modal">确定</button>
                <button class="btn btn-default gxh-details-btn cancel" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>

</div>
<div class="clearfloat"></div>
